home *** CD-ROM | disk | FTP | other *** search
/ SGI Desktop Special Edition 1.1 / SGI Desktop Special Edition 1.1.iso / dist / mmail.idb / usr / lib / Zmail / bin / check_lm.z / check_lm
Encoding:
Text File  |  1995-11-13  |  2.2 KB  |  71 lines

  1. #!/bin/sh
  2.  
  3. # This script checks to see whether language modules are installed without
  4. # the corresponding mmail language subsystem installed.  If so, an
  5. # xconfirm dialog will be displayed.
  6.  
  7. PATH=/usr/sbin:/usr/bsd:/bin:/etc:/sbin:/usr/bin:/usr/etc:/usr/bin/X11
  8. FLAG=0
  9. MSGFILE=/var/tmp/message.$$
  10.  
  11. if [ -n "`showprods -s chinese_sys.sw.user_env_china`" ]; then
  12.     if [ -z "`showprods -s mmail.sw.chinese_china`" ]; then
  13.         FLAG=1
  14.     fi
  15. fi
  16.  
  17. if [ -n "`showprods -s chinese_sys.sw.user_env_taiwan`" ]; then
  18.     if [ -z "`showprods -s mmail.sw.chinese_taiwan`" ]; then
  19.         FLAG=1
  20.     fi
  21. fi
  22.  
  23. if [ -n "`showprods -s japanese_sys.sw`" ]; then
  24.     if [ -z "`showprods -s mmail.sw.japanese`" ]; then
  25.         FLAG=1
  26.     fi
  27. fi
  28.  
  29. if [ -n "`showprods -s european.env.french`" ]; then
  30.     if [ -z "`showprods -s mmail.sw.french`" ]; then
  31.         FLAG=1
  32.     fi
  33. fi
  34.  
  35. if [ -n "`showprods -s european.env.german`" ]; then
  36.     if [ -z "`showprods -s mmail.sw.german`" ]; then
  37.         FLAG=1
  38.     fi
  39. fi
  40.  
  41. if [ -n "`showprods -s korean_sys.sw`" ]; then
  42.     if [ -z "`showprods -s mmail.sw.korean`" ]; then
  43.         FLAG=1
  44.     fi
  45. fi
  46.  
  47. if [ $FLAG -eq 1 ]; then
  48.     cat <<\EOF > ${MSGFILE}
  49. WARNING!  Media Mail installation is NOT complete.
  50.  
  51. This machine has a language module installed (Chinese, French,
  52. German, Japanese, or Korean) and therefore requires the
  53. corresponding MediaMail language files be installed.
  54.  
  55. 1. Click the "Custom Installation" button in the Software Manager
  56.    (if you have quit the Software Manager, double-click on the CDROM
  57.    icon on your desktop to reopen it, or choose Software Manager
  58.    from the System Toolchest menu, and type the path to the
  59.    installation directory in the Available Software field),
  60. 2. Click on the arrow next to "Product: MediaMail, 3.2.1" to
  61.    see the sub-systems,
  62. 3. Click on the install box next to the appropriate MediaMail
  63.    Language Files to select them for installation, and
  64. 4. Click the "Start" button.
  65.  
  66. Localized versions of MediaMail will NOT run if these files are not
  67. installed.
  68. EOF
  69.     xconfirm -file ${MSGFILE} -header MediaMail -icon warning -b OK -geometry +20+350 -font -*-helvetica-bold-r-*-*-15-120-*-*-*-*-iso8859-1 2>&1 >/dev/null && rm -fr ${MSGFILE} &
  70. fi
  71.